import {Schema, Document, model} from 'mongoose';

const deviceInfoSchema = new Schema({
    system: {type: String},
    platform: {type: String},
    brand: {type: String},
    model: {type: String},
    version: {type: String},
    appName: {type: String},
    SDKVersion: {type: String},
    screenWidth: {type: Number},
    screenHeight: {type: Number},
    windowWidth: {type: Number},
    windowHeight: {type: Number},
    safeArea: Object,
    pixelRatio: {type: Number, required: true},
    deviceScore: Object
});

export const DeviceInfo = model('phones', deviceInfoSchema);